<?php 
session_start(); 	
$user = $_SESSION['user'];
if ( $user == "" )
{
	header ("Location: ../index.php?status=Session Expired");
}
include("../inc/db.inc.php"); 
include("../inc/lib.php"); 
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

   <html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta name="author" content="Wink Hosting (www.winkhosting.com)" />
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	<link rel="stylesheet" href="../CSS/style1.css" type="text/css" />
	<title>Trip Scheduler</title>
    <script src="script.js" type="text/javascript"></script>
</head>
<body>
	<div id="page" align="center">
		<div id="toppage" align="center">
			<div id="date">
				<div class="smalltext" style="padding:13px;"><strong><?php echo date('jS \of F Y')?></strong
></div>
			</div>
			<div id="topbar">
				<div align="right" style="padding:12px;" class="smallwhitetext"></div>
			</div>
		</div>
		<div id="header" align="center">
			<div class="titletext" id="logo">
			</div>
			<div id="pagetitle">
				<div id="title" class="titletext" align="right">Welcome <span class="orangelogotext"><?php echo $user; ?></span> to Trip Scheduler!</div>
			</div>
		</div>
		<div id="content" align="center">
			<div id="menu" align="right">
				<div align="right" style="width:189px; height:8px;"><img src="../images/mnu_topshadow.gif" width="189" height="8" alt="mnutopshadow" /></div>
				<div id="linksmenu" align="center">
					<a href="home.php" title="Home">Home</a>
					<a href="add.php" title="Add or Refresh Trips">Add or Refresh Trips</a>
					<a href="delete.php" title="Delete Trips">Delete Trips</a>
					<a href="blockDelete.php" title="Block And Delete Trips">Block And Delete Trips</a>
					<a href="showTrips.php" title="Show Trips">Show Trips</a>
					<a href="../../logout.php" title="Show Trips">Logout</a>
				</div>
				<div align="right" style="width:189px; height:8px;"><img src="../images/mnu_bottomshadow.gif" width="189" height="8" alt="mnubottomshadow" /></div>
			</div>
		<div id="contenttext">
			<div class="bodytext" style="padding:12px;" align="justify">
<?php

if($_SESSION['isadmin']=='true'){
	echo "<input type='hidden' id='username' name='username' value='admin' />";
	}
	else
	{
		
	echo "<input type='hidden' id='username' name='username' value='normalUser' />";
	}
?>

